home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Utilities / mac-shell-05b / MacShell / MacShell.rsrc / help_13536_head < prev    next >
Encoding:
Text File  |  1994-11-23  |  912 b   |  16 lines

  1. head - Echo the top of the input to the output.
  2.  
  3. SYNTAX
  4.    head [-b n1] [-k n2] [filename...]
  5.  
  6. DESCRIPTION
  7.  
  8. The command "head" opens data forks of files whose names are given as arguments, and places the beginning of their contents on standard output.  If no arguments are given, standard input will be used instead.
  9.  
  10. By default, head copies 200 bytes from the top of the input to the output, but this behavior can be changed through the use of the two options "-b" and "-k".  The number (n1) following the option "-b" will be interpreted as the number of bytes to be copied from the top of the input to the output, while the number (n2) following the option "-k" will be interpreted as the number of kilobytes to be copied.  The two options are mutually exclusive.  Supplying both generates an error.
  11.  
  12. The maximum numeric argument is 32767, thus the maximum output is 32767 kilobytes.
  13.  
  14. SEE ALSO
  15.  
  16.         tail, cat